package cc.atliberty.creating.registerSingleton;

/**
 * @Author 元宵
 * @url www.atliberty.cc
 * @Date 2023-10-30 18:32
 * @description: 登记式单例类子类
 */
public class RegChildSingleton extends RegSingleton{
    protected RegChildSingleton() {}
    
    public static RegChildSingleton getInstance() {
        return ((RegChildSingleton) RegSingleton.getInstance(RegChildSingleton.class.getName()));
    }
    
    public void about() {
        System.out.println("this is RegChildSingleton");
    }
}
